package com.jt.www.domain.vo;

import com.jt.www.domain.po.IndustryManager;
import io.swagger.annotations.ApiModelProperty;

/**
 * 行管用户保存修改入参
 * Created by shaoyn on 2020/12/09.
 */
public class IndustryManagerVo {

    @ApiModelProperty(value = "用户user_code")
    private String userCode;

    @ApiModelProperty(value = "帐号")
    private String account;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty("密码(MD5后传值)")
    private String password;

    @ApiModelProperty(value = "分支机构编码")
    private String branchCode;

    @ApiModelProperty(value = "分支机构名称")
    private String branchName;

    @ApiModelProperty(value = "机构名称")
    private String orgName;

    @ApiModelProperty(value = "地区权限code，逗号分割")
    private String areaAuthorityCode;

    @ApiModelProperty(value = "地区权限name，逗号分割")
    private String areaAuthorityName;

    @ApiModelProperty(value = "行政级别: 1-省级;2-市级;3-区级")
    private Byte adminLevel;

    @ApiModelProperty(value = "状态,1-启用中  2-已停用")
    private Byte status;

    @ApiModelProperty(value = "邮箱地址")
    private String email;

    @ApiModelProperty(value = "联系电话")
    private String linkPhone;

    @ApiModelProperty(value = "备注")
    private String remarks;


    private PhoneRegisterVO phoneRegisterVO = new PhoneRegisterVO();

    private IndustryManager industryManager = new IndustryManager();

    public PhoneRegisterVO getPhoneRegisterVO() {
        phoneRegisterVO.setUserName(this.userName);
        phoneRegisterVO.setChannelCode("edu");
        phoneRegisterVO.setUserPhone(this.account);
        phoneRegisterVO.setPassword(this.password);
        return phoneRegisterVO;
    }

    public void setPhoneRegisterVO(PhoneRegisterVO phoneRegisterVO) {
        this.phoneRegisterVO = phoneRegisterVO;
    }

    public IndustryManager getIndustryManager() {
        industryManager.setAccount(this.account);
        industryManager.setUserName(this.userName);
        industryManager.setBranchCode(this.branchCode);
        industryManager.setBranchName(this.branchName);
        industryManager.setOrgName(this.orgName);
        industryManager.setAreaAuthorityCode(this.areaAuthorityCode);
        industryManager.setAreaAuthorityName(this.areaAuthorityName);
        industryManager.setAdminLevel(this.adminLevel);
        industryManager.setLinkPhone(this.linkPhone);
        industryManager.setEmail(this.email);
        industryManager.setRemarks(this.remarks);
        industryManager.setStatus(this.status);
        return industryManager;
    }

    public void setIndustryManager(IndustryManager industryManager) {
        this.industryManager = industryManager;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBranchCode() {
        return branchCode;
    }

    public void setBranchCode(String branchCode) {
        this.branchCode = branchCode;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getAreaAuthorityCode() {
        return areaAuthorityCode;
    }

    public void setAreaAuthorityCode(String areaAuthorityCode) {
        this.areaAuthorityCode = areaAuthorityCode;
    }

    public String getAreaAuthorityName() {
        return areaAuthorityName;
    }

    public void setAreaAuthorityName(String areaAuthorityName) {
        this.areaAuthorityName = areaAuthorityName;
    }

    public Byte getAdminLevel() {
        return adminLevel;
    }

    public void setAdminLevel(Byte adminLevel) {
        this.adminLevel = adminLevel;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
